Learn R Programming

circular (version 0.5-1)

[.circular: Extract or Replace Parts of a Circular Object

Description

Operators act on vectors and matrices to extract or replace subsets, methods for Circular Data.

Usage

# S3 method for circular
[(x, i, ...)

Arguments

x

object from which to extract elements.

i, ...

elements to extract or replace.

Author

Claudio Agostinelli

Examples

Run this code
x <- circular(matrix(rwrappednormal(n=100, mu=circular(0)), nrow=5))
dim(x)
x[1,]
x[,1]
x[,1, drop=FALSE]

Run the code above in your browser using DataLab